package it.koutifaris.travianmap.model.impl;

import it.koutifaris.travianmap.model.Player;
import it.koutifaris.travianmap.model.Village;

public class VillageImpl extends AbstractDomainObject implements Village {

	private final String name;
	private final Player owner;
	private final int population;
	private final int x;
	private final int y;

	public VillageImpl(int id, String name, Player owner, int population, int x, int y) {
		super(id);
		this.name = name;
		this.owner = owner;
		this.population = population;
		this.x = x;
		this.y = y;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Player getOwner() {
		return owner;
	}

	@Override
	public int getPopulation() {
		return population;
	}

	@Override
	public int getX() {
		return x;
	}

	@Override
	public int getY() {
		return y;
	}

}
